package com.rd.student.jiaji.class3.qinjialin.day0801;


import java.util.Arrays;

public class Questions1{
    public static void main(String[] args) {
        int[] arr = new int[]{1, 3, 5, 7, 9, 11, 13, 15, 17, 0};
        System.arraycopy(arr, 5, arr, 6, 4);
        arr[5] = 10;
        System.out.println(Arrays.toString(arr));
        int[] arr1 = {1, 3, 5, 7, 9, 11, 13, 15, 17};
        int a[] = new int[1];
        System.arraycopy(a, 0, arr1, 5, 1);
        System.arraycopy(arr1, 6, arr1, 5, 3);
        arr1[arr1.length - 1] = 0;
        System.out.println(Arrays.toString(arr1));


    }

}